package lab.mongo;


import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

//@EnableDiscoveryClient
@SpringBootApplication
public class MainApp {
	public static void main(String[] args) {
		new SpringApplicationBuilder(MainApp.class).initializers().web(WebApplicationType.SERVLET).run(args);

//		ConfigurableApplicationContext ctx = new SpringApplication(MainApp.class).run(args);
//
//		IMongoService mongoService = ctx.getBean(IMongoService.class);
//		List<SubjectInfo> subjects = mongoService.findAll();
//		System.out.println(subjects);
//
//
//		ctx.close();
	}


}
